{{template "header" .}}
<title>首页 - 我的博客首页</title>
</head>
<body>
<div class="navbar navbar-default navbar-static-top bs-docs-nav">
    <div class="container">
    {{template "navbar" .}}
    </div>
</div>

<div class="container">
{{range .topicList}}
    <div class="page-header">
        <a href="/topic/view?id={{.Id}}">
            <h1>{{.Title}}</h1>
            <h6 class="text-muted">文章发表于 {{.Created}},共有{{.Views}}次浏览,{{.ReplyCount}}个评论</h6>
            <p>
            {{.Content}}
            </p>
        </a>
    </div>
{{end}}
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
        integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
        crossorigin="anonymous"></script>

</html>